<?php
$v['user_agent']['written_language_tag'] = Common::getUserFirstWrittenLanguageTag();

$language_model = new LanguageModel();

$result = $language_model->getWrittenLanuagesTagAndId();
$v['user_agent']['written_language_id'] = $result[$v['user_agent']['written_language_tag']];


$product_model = new ProductModel($v['uri_data']['category_id'],$v['user_agent']['written_language_id']);

$v['filter_sort'] = $product_model->getProductFilterSort();
foreach($v['filter_sort'] as $position=>$name)
{
	$v['uri_data'][$name] = $v['uri_array'][$position];
}
$c = count($v['uri_array']);
$v['uri_data']['order_by'] = $v['uri_array'][$c-2];
$v['uri_data']['page_num'] = $v['uri_array'][$c-1];

if(!isset($v['category']))
{
	$v['category'] = array(
		'1' => 'cpu',
		'2' => 'gpu',
	);
}
if(!isset($category_model))
{
	$category_model = new CategoryModel();
}

if(!isset($v['categories_wlp']))
{
	$v['categories_wlp'] = $category_model->getAllCategoriesWlp($v['user_agent']['written_language_id']);
}
$v['title'] = $v['categories_wlp'][$v['uri_data']['category_id']];
require Common::getUsingTempletePath().'/list/module_head.tpl';

?>